package com.dpteam.dao;

import com.dpteam.model.Provider;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: luolei
 * Date: 2016/1/7
 * Time: 16:47
 */
public interface ProviderDao extends BaseDao<Provider> {

    /**
     * 查询所有供应商
     *
     * @return
     */
    List<Provider> findAllProvider();

    /**
     * 根据供应商名称查询供应商
     *
     * @param providerName
     * @return
     */
    Provider findByProviderName(String providerName);

    void deleteById(int id);
}
